package com.log530_projetfinal;

import java.util.*;

public class EnsembleCarnivore
{

  private static Hashtable<String, Carnivore> listeCarnivore =
    new Hashtable<String, Carnivore>();

  public static Hashtable<String, Carnivore> getListe()
  {
    return listeCarnivore;
  }

  public static Herbivore getCarnivore(String id)
  {
    return listeCarnivore.get(id);
  }

  public static void ajouterCarnivore(Carnivore h)
  {
    listeCarnivore.put(h.getId(), h);
  }

  public static void enleverCarnivore(String id)
  {
    listeCarnivore.remove(id);
  }
}

